//package cn.itcast.config;
//
//import cn.itcast.pojo.User;
//import com.alibaba.druid.pool.DruidDataSource;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//
///**
// * @Author: taft
// * @Date: 2018-9-23 10:05
// */
//@Configuration  //xml
//public class SpringbootJdbcConfig {
//
//
//    //<bean>
//    @Bean
//    @ConfigurationProperties(prefix = "jdbc")
//    public DataSource dataSource(){
//        DruidDataSource dataSource = new DruidDataSource();
//        return dataSource;
//    }
//
//    @Bean
//    @ConfigurationProperties(prefix = "user")
//    public User user(){
//        User user = new User();
//        return user;
//    }
//}
